package cn.stylefeng.guns.modular.hx.basic.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.hx.basic.entity.HxBasicPositionGoods;
import cn.stylefeng.guns.modular.hx.basic.model.params.HxBasicGoodsParam;
import cn.stylefeng.guns.modular.hx.basic.model.params.HxBasicPositionGoodsParam;
import cn.stylefeng.guns.modular.hx.basic.model.result.HxBasicPositionGoodsResult;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxStorageStockParam;
import cn.stylefeng.guns.modular.hx.storage.model.result.HxStorageStockResult;

import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 库位商品关联表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2023-09-06
 */
public interface HxBasicPositionGoodsService extends IService<HxBasicPositionGoods> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2023-09-06
     */
    void add(HxBasicPositionGoodsParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2023-09-06
     */
    void delete(HxBasicPositionGoodsParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2023-09-06
     */
    void update(HxBasicPositionGoodsParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-09-06
     */
    HxBasicPositionGoodsResult findBySpec(HxBasicPositionGoodsParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2023-09-06
     */
    List<HxBasicPositionGoodsResult> findListBySpec(HxBasicPositionGoodsParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-09-06
     */
     LayuiPageInfo findPageBySpec(HxBasicPositionGoodsParam param,String condition);

	HxStorageStockResult findStorageStockBySpec(HxStorageStockParam param);
 	
 	boolean saveBatchList(List<HxBasicPositionGoodsParam> list);

    void deleteByOne(HxBasicPositionGoodsParam hxBasicPositionGoodsParam);

	void empty();

	void removeEmpty(List<Long> warehouseIdList);
	
    List<HxBasicPositionGoodsResult> findemptyListBySpec();

}
